<template>
    <div class="home-container">
        <van-nav-bar class="page-nav-bar" title="社团列表" fixed  />
        <club-list key="notification-list"></club-list>
    </div>
    
</template>
    
    
    
    
    <script>
    import clubList from './components/club-list.vue';
    import { onBeforeRouteLeave } from 'vue-router';
    export default {
        components:{
            clubList
        },
        setup(){
            onBeforeRouteLeave((to, from, next) => {
      // 获取当前滑块位置
      const scrollY = window.scrollY || window.pageYOffset;
      // 存储滑块位置到 sessionStorage 中
      sessionStorage.setItem('scrollYClub', scrollY);

      next();
    });
        }
    
    };
    </script>
    
    
    
    
    <style>

    </style>